package com.ds.lens.data.vo.in.v2.monitor.state;

import com.ds.lens.data.common.constant.MonitorStateEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * @author WeiShaoying
 * @date 2019/12/10 下午3:41
 */
@Setter
@Getter
public class LensMonitorStateUpdateVO {
    private Long id;
    private Integer version;
    private Integer level;
    private Integer preLevel;

    public Integer getState(){
        return MonitorStateEnum.valueOfLevel(this.level).getState();
    }

    public Integer getPreState(){
        return MonitorStateEnum.valueOfLevel(this.preLevel).getState();
    }
}
